/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.core;

import com.google.gwt.core.client.JavaScriptObject;

/** Wrapper for Office.FillFormat*/
public class FillFormat extends JavaScriptObject {

	protected FillFormat() { }
	public native final Object getApplication()/*-{
		return this.Application;
	}-*/;

	public native final int getCreator()/*-{
		return this.Creator;
	}-*/;

	public native final Object getParent()/*-{
		return this.Parent;
	}-*/;

	public native final void background()/*-{
		this.Background( );
	}-*/;

	protected native final void _oneColorGradient( int style, int variant, float degree)/*-{
		this.OneColorGradient( style, variant, degree);
	}-*/;

	public final void oneColorGradient(MsoGradientStyle style, int variant, float degree){
		_oneColorGradient(style.getValue(), variant, degree);
	}
	protected native final void _patterned( int pattern)/*-{
		this.Patterned( pattern);
	}-*/;

	public final void patterned(MsoPatternType pattern){
		_patterned(pattern.getValue());
	}
	protected native final void _presetGradient( int style, int variant,  int presetGradientType)/*-{
	this.PresetGradient( style, variant, presetGradientType);
}-*/;

	public final void presetGradient(MsoGradientStyle style, int variant, MsoPresetGradientType presetGradientType){
		_presetGradient(style.getValue(), variant, presetGradientType.getValue());
	}



	protected native final void _presetTextured( int presetTexture)/*-{
	this.PresetTextured( presetTexture);
}-*/;

	public final void presetTextured(MsoPresetTexture presetTexture){
		_presetTextured(presetTexture.getValue());
	}
	public native final void solid()/*-{
		this.Solid( );
	}-*/;


	protected native final void _twoColorGradient( int style, int variant)/*-{
		this.TwoColorGradient( style, variant);
	}-*/;

	public final void twoColorGradient(MsoGradientStyle style, int variant){
		_twoColorGradient(style.getValue(), variant);
	}
	public native final void userPicture(String pictureFile)/*-{
		this.UserPicture( pictureFile);
	}-*/;

	public native final void userTextured(String textureFile)/*-{
		this.UserTextured( textureFile);
	}-*/;

	public native final ColorFormat getBackColor()/*-{
		return this.BackColor;
	}-*/;

	public native final void setBackColor(ColorFormat value)/*-{
		this.BackColor = value;
	}-*/;

	public native final ColorFormat getForeColor()/*-{
		return this.ForeColor;
	}-*/;

	public native final void setForeColor(ColorFormat value)/*-{
		this.ForeColor = value;
	}-*/;


	protected native final int _getGradientColorType()/*-{
		return this.GradientColorType;
	}-*/;

	public final MsoGradientColorType getGradientColorType(){
		return MsoGradientColorType.valueOf(_getGradientColorType());
	}

	public native final float getGradientDegree()/*-{
		return this.GradientDegree;
	}-*/;

	protected native final int _getGradientStyle()/*-{
		return this.GradientStyle;
	}-*/;

	public final MsoGradientStyle getGradientStyle(){
		return MsoGradientStyle.valueOf(_getGradientStyle());
	}

	public native final int getGradientVariant()/*-{
		return this.GradientVariant;
	}-*/;


	protected native final int _getPattern()/*-{
		return this.Pattern;
	}-*/;

	public final MsoPatternType getPattern(){
		return MsoPatternType.valueOf(_getPattern());
	}


	protected native final int _getPresetGradientType()/*-{
		return this.PresetGradientType;
	}-*/;

	public final MsoPresetGradientType getPresetGradientType(){
		return MsoPresetGradientType.valueOf(_getPresetGradientType());
	}

	protected native final int _getPresetTexture()/*-{
	return this.PresetTexture;
}-*/;

	public final MsoPresetTexture getPresetTexture(){
		return MsoPresetTexture.valueOf(_getPresetTexture());
	}

	public native final String getTextureName()/*-{
		return this.TextureName;
	}-*/;



	protected native final int _getTextureType()/*-{
		return this.TextureType;
	}-*/;

	public final MsoTextureType getTextureType(){
		return MsoTextureType.valueOf(_getTextureType());
	}
	public native final float getTransparency()/*-{
		return this.Transparency;
	}-*/;

	public native final void setTransparency(float value)/*-{
		this.Transparency = value;
	}-*/;


	protected native final int _getType()/*-{
		return this.Type;
	}-*/;

	public final MsoFillType getType(){
		return MsoFillType.valueOf(_getType());
	}


	protected native final int _getVisible()/*-{
		return this.Visible;
	}-*/;

	public final MsoTriState getVisible(){
		return MsoTriState.valueOf(_getVisible());
	}


	protected native final void _setVisible( int value)/*-{
		this.Visible = value;
	}-*/;

	public final void setVisible(MsoTriState value){
		_setVisible(value.getValue());
	}

	public native final GradientStops getGradientStops()/*-{
		return this.GradientStops;
	}-*/;

	public native final float getTextureOffsetX()/*-{
		return this.TextureOffsetX;
	}-*/;

	public native final void setTextureOffsetX(float value)/*-{
		this.TextureOffsetX = value;
	}-*/;

	public native final float getTextureOffsetY()/*-{
		return this.TextureOffsetY;
	}-*/;

	public native final void setTextureOffsetY(float value)/*-{
		this.TextureOffsetY = value;
	}-*/;



	protected native final int _getTextureAlignment()/*-{
		return this.TextureAlignment;
	}-*/;

	public final MsoTextureAlignment getTextureAlignment(){
		return MsoTextureAlignment.valueOf(_getTextureAlignment());
	}

	protected native final void _setTextureAlignment( int value)/*-{
		this.TextureAlignment = value;
	}-*/;

	public final void setTextureAlignment(MsoTextureAlignment value){
		_setTextureAlignment(value.getValue());
	}

	public native final float getTextureHorizontalScale()/*-{
		return this.TextureHorizontalScale;
	}-*/;

	public native final void setTextureHorizontalScale(float value)/*-{
		this.TextureHorizontalScale = value;
	}-*/;

	public native final float getTextureVerticalScale()/*-{
		return this.TextureVerticalScale;
	}-*/;

	public native final void setTextureVerticalScale(float value)/*-{
		this.TextureVerticalScale = value;
	}-*/;


	protected native final int _getTextureTile()/*-{
		return this.TextureTile;
	}-*/;

	public final MsoTriState getTextureTile(){
		return MsoTriState.valueOf(_getTextureTile());
	}


	protected native final void _setTextureTile( int value)/*-{
		this.TextureTile = value;
	}-*/;

	public final void setTextureTile(MsoTriState value){
		_setTextureTile(value.getValue());
	}


	protected native final int _getRotateWithObject()/*-{
		return this.RotateWithObject;
	}-*/;

	public final MsoTriState getRotateWithObject(){
		return MsoTriState.valueOf(_getRotateWithObject());
	}
	protected native final void _setRotateWithObject( int value)/*-{
		this.RotateWithObject = value;
	}-*/;

	public final void setRotateWithObject(MsoTriState value){
		_setRotateWithObject(value.getValue());
	}

}
